package ntd.util.modular.other.controller;

import io.swagger.annotations.Api;
import ntd.util.config.common.bo.ResponseBO;
import com.tool.ToolSpring;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"通用工具"})
@RestController
@RequestMapping("/tool")
public class ControllerTool {

    @GetMapping("ip")
    public ResponseBO<String> ip() {
        return new ResponseBO<>(ToolSpring.ip());
    }
}
